<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Azhe免签-支付Dome</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.5/dist/css/layui.css">
    <script src="//unpkg.com/layui@2.6.5/dist/layui.js"></script>
</head>
<body style="background:#5FB878;">

	<div style="position: absolute;Left: 50%;top: 50%;width:350px;margin-Left: -170px;margin-top: -200px;">
			<div style="background:#fff;padding:20px;barder-radius: 4px;box-shadow: 5px 5px 20px #000;">
				<div>
					<div class="layui-form-item" style="color：red；">
						<h3>Azhe免签 | 支付Dome</h3>
					</div>
					<hr>
					<div class="layui-form-item">
					<label class="layui-form-label">订单号：</label>
					<div class="layui-input-block">
					<input type="text" id="order_id" required  lay-verify="required" autocomplete="off" class="layui-input" value="readonly" readonly/>
					</div>
					</div>
					
					<div class="layui-form-item">
					<label class="layui-form-label">参数号：</label>
					<div class="layui-input-block">
					<input type="text" id="diy" value="pay.joo.life" required  lay-verify="required" autocomplete="off" class="layui-input" readonly/>
					</div>
					</div>
					
					<div class="layui-form-item">
					<label class="layui-form-label">支付金额：</label>
					<div class="layui-input-block">
					<input type="number" placeholder="￥"  id="order_rmb" value="" placeholder="请输入您要支付的金额" required  lay-verify="required" autocomplete="off" class="layui-input"/>
					</div>
					</div>
					
					<div class="layui-form-item">
					<label class="layui-form-label">支付方式：</label>
					<div class="layui-input-block">
					<select id="code" lay-verify="required">
					<option value="2">微信</option>
					<option value="1">支付宝</option>
					</select>
					</div>
					</div>
					
					<div class="layui-input-block">
					<button class="layui-btn layui-btn-danger" lay-submit lay-filter="formDemo" onclick="pay()">立即支付</button>
					</div>
					
					</div>
					</div>
					</div>

<script  src="https://lib.baomitu.com/jquery/3.4.0/jquery.min.js"></script>
<script>
    $("#order_id").val(new Date().getTime());
    function pay() {
        var p = "order_id="+$("#order_id").val() + "&order_rmb="+$("#order_rmb").val()+"&code="+$("#code").val()+"&diy="+$("#diy").val();
        window.location.href = "pay.php?" + p;

    }
</script>


</body>
</html>